package leo.weixin.entity.message;

import leo.weixin.common.Const;
import leo.weixin.entity.Music;
import leo.weixin.entity.message.BaseMessage;
import lombok.Data;

import java.util.Map;

/**
 * 音乐消息
 * <xml>
 *   <ToUserName><![CDATA[toUser]]></ToUserName>
 *   <FromUserName><![CDATA[fromUser]]></FromUserName>
 *   <CreateTime>12345678</CreateTime>
 *   <MsgType><![CDATA[music]]></MsgType>
 *   <Music>
 *     <Title><![CDATA[TITLE]]></Title>
 *     <Description><![CDATA[DESCRIPTION]]></Description>
 *     <MusicUrl><![CDATA[MUSIC_Url]]></MusicUrl>
 *     <HQMusicUrl><![CDATA[HQ_MUSIC_Url]]></HQMusicUrl>
 *     <ThumbMediaId><![CDATA[media_id]]></ThumbMediaId>
 *   </Music>
 * </xml>
 */
@Data
public class MusicMessage extends BaseMessage {
    private Music music ;
    public MusicMessage(Map<String,String> requestMap,Music music){
        super(requestMap);
        setMsgType(Const.MsgTypeEnum.MUSIC);
        this.music = music ;
    }
}
